package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Aircraft;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AircraftMapper extends BaseMapper<Aircraft> {

    List<Aircraft> selectAllAircraft(@Param("originName")String originName,
                                     @Param("destinationName")String destinationName,
                                     @Param("start")Integer start,
                                     @Param("pageSize")Integer pageSize);//条件+分页查询飞机票信息

    int count(@Param("originName")String originName,@Param("destinationName")String destinationName);//条件查询飞机票信息数量
}
